package com.fishery.customization.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@ApiModel(value = "用户标签对象")
@Document(value = "c_user_label")
public class UserLabel {

	@Id
	@ApiModelProperty(value = "id", hidden = true)
	private String id;

	@Field(value = "user_id")
	@ApiModelProperty(value = "用户id")
	private String userId;

	@Field(value = "customized_labels")
	@ApiModelProperty(value = "用户自定义后的标签")
	private List<OneLevelLabel> customizedLabels;

	@ApiModelProperty(value = "角色")
	private String role;

	@Field(value = "base_id")
	@ApiModelProperty(value = "基地ID")
	private String baseId;


	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public List<OneLevelLabel> getCustomizedLabels() {
		return customizedLabels;
	}

	public void setCustomizedLabels(List<OneLevelLabel> customizedLabels) {
		this.customizedLabels = customizedLabels;
	}
}
